<?php

require_once './include/common.inc.php';
$page_title = 'jans2en furniture - Setting';
$vNull = null;
$postiondiv=GetSettingPositionLink(null,null,null,null,&$vNull);
$baner_img='<div class="bigtitle">Setting</div>';

$toUrl = 'product_photo_list.php?categoryid=%d&settingid=%d';
if ($jansen_type > 0 && $jansen_uid > 0) 
{	
	$toUrl = 'product_list.php?categoryid=%d&settingid=%d';
}

$arySetting = GetSettingAry();
$category_list = GetSettingMenu($arySetting,$toUrl,"","");
$ViewAllUrl = sprintf($toUrl,0,0);

// -------------- guide start ----------------------------------------
$pic_ary = getSystemValue("");
$img1 = $pic_ary["picture_other_setting1en"];
$img2 = $pic_ary["picture_other_setting2en"];


if (trim($img1) == "" || !file_exists("./zh/attachments/system/" . $img1)) {
	$img1 = '<img src="./zh/attachments/no.gif" alt="" width="297" height="292"/>';
} else {
	$wh = "";
	$imgSize=getimagesize("./zh/attachments/system/".$img1);
	if($imgSize[0] > 370) $wh .= " width='370'";
	if($imgSize[1] > 370) $wh .= " height='370'";
	$img1 = '<img src="./zh/attachments/system/'.$img1.'"'.$wh.' alt=""/>';
}



if (trim($img2) == "" || !file_exists("./zh/attachments/system/" . $img2)) {
	$img2 = '<img src="./zh/attachments/no.gif" alt="" width="297" height="292"/>';
} else {
	$wh = "";
	$imgSize=getimagesize("./zh/attachments/system/".$img2);
	if($imgSize[0] > 370) $wh .= " width='370'";
	if($imgSize[1] > 370) $wh .= " height='370'";
	$img2 = '<img src="./zh/attachments/system/'.$img2.'"'.$wh.' alt=""/>';
}

// -------------- guide end ----------------------------------------

require_once PrintEot('header3');
require_once PrintEot('setting');
require_once PrintEot('footer');

?>